<?php defined('IN_LK') or die('Access Denied');?>
<?php include self::admin_t('header');?>
<style type="text/css">
.current {
	background-color: #4598D2;
	color: #FFFFFF;
	text-decoration:underline;
}
.weekmoth a.current:hover{
	color:#FFFFFF;
}
</style>
<div id="login_error" class="message msg">
  <form action="?m=admin&c=stat&a=si" method="get">
    <input type="hidden" name="m" value="admin" />
    <input type="hidden" name="c" value="stat" />
    <input type="hidden" name="type" value="user" />
    时间 <?php echo form::input_date('start', $start1, 0);?> 至 <?php echo form::input_date('end', $end1, 0, 0);?>
    <input type="submit" class="btn" name="dosubmit" id="dosubmit" value="查看" />
    <span class="weekmoth">&nbsp;&nbsp; <a href="?m=admin&c=stat&type=week"<?php if($ac=='week'){?> class="current"<?php }?>>本周</a>&nbsp;&nbsp; <a href="?m=admin&c=stat&type=month"<?php if($ac=='month'){?> class="current"<?php }?>>本月</a>&nbsp;&nbsp; <a href="?m=admin&c=stat&type=season"<?php if($ac=='season'){?> class="current"<?php }?>>本季度</a></span>
  </form>
</div>
<div class="c"></div>
<div class="table-list">
  <table width="100%" cellspacing="0">
    <thead>
      <tr>
        <th align="left" width="120">类型</th>
        <th align="left" width="">统计（信息条数）</th>
      </tr>
    </thead>
    <tbody>
      <?php if($result){ foreach($result as $kk => $vv){?>
      <tr>
        <td><?php echo $kk;?></td>
        <td><?php echo $vv;?></td>
      </tr>
      <?php }}else{?>
      <tr>
        <td colspan="2" align="center">暂无数据</td>
      </tr>
      <?php }?>
    </tbody>
  </table>
</div>
<script typr="text/javascript">
<!--
function edit(uid, uname)
{
	window.top.art.dialog(
	{
		width:'500px',
		height:'280px',
		title : '编辑 - ' + uname,
		iframe: '?m=admin&c=admin_manage&a=admin_edit&userid=' + uid,
		id : 'edit'
	},
	function ()
	{
		var d = window.top.art.dialog({id:'edit'}).data.iframe;
		var form = d.document.getElementById('dosubmit');
		form.click();
		return false;
	},
	function ()
	{
		window.top.art.dialog({id:'edit'}).close();
	});
}
function del(uid, uname)
{
	window.top.art.dialog(
	{
		title:'删除 - ' + uname,
		content: '你确定要删除 ' + uname + ' 吗？',
		fixed:true,
		id:'del'
	},
	function ()
	{
		$.get('?m=admin&c=admin_manage&a=admin_del&userid=' + uid, function(data)
		{
			parent.main.location.reload();
		});
		
	},
	function()
	{
		window.top.art.dialog({id:'del'}).close();
	});
}
//-->
</script>
<?php include self::admin_t('footer');?>
